package com.gnerv.cms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 基础平台-权限表
 * </p>
 *
 * @author Gnerv LiGen
 * @since 2019-10-10
 */
@Data
@NoArgsConstructor
@TableName("manage_statistics_api")
public class StatisticsApi extends BaseEntity {

    /**
     * 业务主键
     */
    @TableId(value = "uk_id", type = IdType.UUID)
    private String ukId;

    /**
     * 接口地址
     */
    private String path;

    /**
     * 访问次数
     */
    private Integer total;

    public StatisticsApi(String path, Integer total){
        this.path = path;
        this.total = total;
    }
}
